import request from '@/utils/request'

// 查询字段元数据标签列表
export function listExtModelFieldMetadataTag(query) {
  return request({
    url: '/business/extModelFieldMetadataTag/list',
    method: 'get',
    params: query
  })
}

// 查询字段元数据标签详细
export function getExtModelFieldMetadataTag(id) {
  return request({
    url: '/business/extModelFieldMetadataTag/' + id,
    method: 'get'
  })
}

// 新增字段元数据标签
export function addExtModelFieldMetadataTag(data) {
  return request({
    url: '/business/extModelFieldMetadataTag',
    method: 'post',
    data: data
  })
}

// 修改字段元数据标签
export function updateExtModelFieldMetadataTag(data) {
  return request({
    url: '/business/extModelFieldMetadataTag',
    method: 'put',
    data: data
  })
}

// 删除字段元数据标签
export function delExtModelFieldMetadataTag(id) {
  return request({
    url: '/business/extModelFieldMetadataTag/' + id,
    method: 'delete'
  })
}
// 关联模型表，模型字段，字段引用及标签表查询字段元数据标签列表
export function listCombination(query) {
  return request({
    url: '/business/extModelFieldMetadataTag/listCombination',
    method: 'get',
    params: query
  })
}
